# Contributor: Anjandev Momi <anjan@momi.ca>
# Maintainer: Anjandev Momi <anjan@momi.ca>
pkgname=mobpass
pkgver=0.2
pkgrel=0
pkgdesc="A mobile interface for gopass"
url="https://git.sr.ht/~anjan/mobpass"
arch="noarch !mips64 !armhf" # missing dependencies
options="!check" # No test suite
license="GPL-3.0-or-later"
depends="python3 py3-qt5 qt5-qtquickcontrols qt5-qtquickcontrols2 gopass py3-fuzzyfinder"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~anjan/mobpass/archive/v$pkgver.tar.gz"
builddir="$srcdir/"$pkgname-v$pkgver

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	install -Dm644 mobpass.desktop "$pkgdir"/usr/share/applications/mobpass.desktop
}

sha512sums="b04e40907f02e6459987eca4ea582dd17da34599a62b064547fecc1cc58d007b69d68c751b650005393b301ed7bf9ed79e84a0ec53ecfdc1541400fcdf70ce05  mobpass-0.2.tar.gz"
